Add another test case to make sure subst fixes don't break template safety
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 20 Apr 2005 22:37:15 +0000 (22:37 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 20 Apr 2005 22:37:15 +0000 (22:37 +0000)
maintenance/parserTests.txt

index c3a730b..0303c21 100644 (file)
@@ -1465,6 +1465,22 @@ This template has <!-- a comment --> in it.
 !! end
 
 
+!! article
+Template:dangerous
+!!text
+<span onmouseover="alert('crap')">Oh no</span>
+!!endarticle
+
+!!test
+(confirming safety of fix for subst bug 1936)
+!! input
+{{Template:dangerous}}
+!! result
+<p><span>Oh no</span>
+</p>
+!! end
+
+
 ###
 ### Message transform tests
 ###